$OpenBSD: patch-src_python_task_cpp,v 1.1 2013/06/06 08:36:49 zhuk Exp $
--- src/python/task.cpp.orig	Thu Jun  6 11:52:13 2013
+++ src/python/task.cpp	Thu Jun  6 11:53:17 2013
@@ -136,14 +136,14 @@ PyObject* getTaskInfo(long widget, long ctask)
         PyObject* pList = PyList_New(0);
 
         //Task Name
-        if (currTask->name() != NULL) {
+        if (!currTask->name().isNull()) {
             PyList_Append(pList, PyString_FromString(currTask->name().toLatin1().constData()));
         } else {
             PyList_Append(pList, PyString_FromString(""));
         }
 
         //Icon Name
-        if (currTask->info().iconName() != NULL) {
+        if (!currTask->info().iconName().isNull()) {
             PyList_Append(pList, PyString_FromString(
                               currTask->info().iconName().toLatin1().constData()));
         } else {
@@ -151,7 +151,7 @@ PyObject* getTaskInfo(long widget, long ctask)
         }
 
         //Class Name
-        if (currTask->className() != NULL) {
+        if (!currTask->className().isNull()) {
             PyList_Append(pList, PyString_FromString(currTask->className().toLatin1().constData()));
         } else {
             PyList_Append(pList, PyString_FromString(""));
@@ -214,21 +214,21 @@ PyObject* getStartupInfo(long widget, long cstartup)
         PyObject* pList = PyList_New(0);
 
         //Startup Name
-        if (startup -> text() != NULL) {
+        if (!startup -> text().isNull()) {
             PyList_Append(pList, PyString_FromString(startup -> text().toLatin1().constData()));
         } else {
             PyList_Append(pList, PyString_FromString(""));
         }
 
         //Icon Name
-        if (startup -> icon() != NULL) {
+        if (!startup -> icon().isNull()) {
             PyList_Append(pList, PyString_FromString(startup -> icon().toLatin1().constData()));
         } else {
             PyList_Append(pList, PyString_FromString(""));
         }
 
         //Executable Name
-        if (startup -> bin() != NULL) {
+        if (!startup -> bin().isNull()) {
             PyList_Append(pList, PyString_FromString(startup -> bin().toLatin1().constData()));
         } else {
             PyList_Append(pList, PyString_FromString(""));
